'use strict';
(function() {
	let superFunction = function(cb) {
		let super_state = {};
		let body = document.body;
		
		return function(...args) {
			let state = {};
			let el = cb(state, args);
			
			return state;
		};
	};
	
	
	let component1 = superFunction('div', function(state, n) {
		state.title = n;
		
		console.log(state, n);
		
		return el;
	});
	
	console.log('component1', component1(10));
})();
